When you make changes to the world (or leaderstats values) in LocalScripts, those changes are only present on that client. This is likely because you are using a Tool to increment Sticks.Value, and it is common for Tools to use LocalScripts to hook up logic. If you were to print out the Sticks.Value before adding it to Cash.Value, you'd see that Sticks.Value stays at 0. The code in your original question works just fine. Okay, after watching the video, I might have a hunch as to what's going wrong. If you need anything else I can get more pictures or videos but that is the best I could give. Now, here is my script that changes the leaderstats, it detects the the event fired but nothing changes in leaderstats. Let me know if I should change it to a LocalScript. If hit.Parent:FindFirstChild("Humanoid") then Here is my script to detect when the player touches the sell part. So, for my original question, the sell knows I touch it and it activates the event but nothing changes in the leaderstats. Here is that script: :Connct(function(player, valueFolder) I have a print in it but nothing happens. Now my problem is with a script in ServerScriptService not receiving the remote event. It prints that it activated and the animation plays. Now, that is in a LocalScript and that works. I have tried a bunch of different solutions but none work. I changed it to a remote event and now it stopped changing my leaderstats. I have got some pictures and videos in these Ĭurrently my issue is still the title of my question and my tool not working. I have been making a Roblox simulator as a side project to learn how to make games, Now I have gotten some help as you can see below but it is still not working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |