of     1   

Nikkulai
#225835902Sunday, October 01, 2017 5:07 PM GMT

I am making a shop gui for my sword fighting game, and it works up until the server script. The local script does everything fine, but the server script does nothing. There are not any errors either. Idk what to do atm. The layout is like this: Button > Server Script, Local Script, and Remote Event (They are all inside the button) Local Script: local BuyEventOn = script.Parent:WaitForChild("BuyEvent") local Player = game.Players.LocalPlayer script.Parent.MouseButton1Down:Connect(function(click) if Player:WaitForChild("leaderstats"):FindFirstChild("Money").Value >= script.Parent:WaitForChild("Cost").Value and Player:FindFirstChild(script.Parent.Name).Value == 0 then BuyEventOn:FireServer() print("1") end end) Server Script: local BuyEventOn = script.Parent:WaitForChild("BuyEvent") local function BuyEvent1(Player) print("2") Player:WaitForChild("leaderstats"):FindFirstChild("Money").Value = Player:WaitForChild("leaderstats"):FindFirstChild("Money").Value - script.Parent:WaitForChild("Cost").Value Player:FindFirstChild(script.Parent.Name).Value = 1 script.Parent.BackgroundColor3 = Color3.new(0, 255, 0) end BuyEventOn.OnServerEvent:Connect(BuyEvent1) If you can help please do Lol. Thanks!
Nikkulai
#225836535Sunday, October 01, 2017 5:15 PM GMT

Bump :P
HalfPinky456
#225836676Sunday, October 01, 2017 5:16 PM GMT

BackgroundColor3 = Color3.new(0, 1, 0)
Nikkulai
#225836961Sunday, October 01, 2017 5:20 PM GMT

wot, Lol. Im pretty sure the background color part didnt break the script Lol
Nikkulai
#225838148Sunday, October 01, 2017 5:35 PM GMT

bump
Nikkulai
#225853330Sunday, October 01, 2017 9:39 PM GMT

Bump

    of     1