mjt-21 / Hay-Simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hay-Simulator

This is some simple code I wrote using Roblox Lua; my friends and I wanted to try out making a game where you can pick up hay, earn points, and then use it to get new items, and so on. Here's just a small part of it, the scripts for picking up hay, using Roblox's DataStore service to store the hay count on the server, and having the hay transition when hit.

Here's the testing game if you'd like to check it out yourself: https://www.roblox.com/games/5656817598/Hay-Simulator-Datastore-Test

Screenshots:

Structure of "Hay" objects/parts in game:

2021-04-17 16_01_52-Window

Placement of server-side scripts in ServerScriptService:

image

HayGUI script placement in the TextLabel to display the amount of hay collected:

image

In-Game perspective

Before collecting hay:

image

After collecting some hay:

image

About