local ReplicatedStorage = game:GetService("ReplicatedStorage") local DoughEvent = ReplicatedStorage:WaitForChild("DoughEvent") local player = game.Players.LocalPlayer local button = script.Parent local clicked = false local function onCharacterAdded(character) clicked = false end if player.Character then onCharacterAdded(player.Character) end player.CharacterAdded:Connect(onCharacterAdded) button.MouseButton1Click:Connect(function() if not clicked then clicked = true DoughEvent:FireServer() end end
Don't reupload this tutorial
And give me credit pls.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local DoughEvent = ReplicatedStorage:WaitForChild("DoughEvent")
local player = game.Players.LocalPlayer
local button = script.Parent
local clicked = false
local function onCharacterAdded(character)
clicked = false
end
if player.Character then
onCharacterAdded(player.Character)
end
player.CharacterAdded:Connect(onCharacterAdded)
button.MouseButton1Click:Connect(function()
if not clicked then
clicked = true
DoughEvent:FireServer()
end
end
Venom fruit pls
I can't do that sorry :(
?ok
Doesn't work for me
@@Openlockk you use r15 body right?
And do you already add RemoteEvent?