I figured out how to do it on when you click the screen, but since people keep doing it on accident, how would i make it so that it does it when you press a Button Gui? (sorry if im confusing)
game:GetService("ReplicatedStorage").Roka.OnServerEvent:Connect(function(player)
local char = player.Character
if not char:FindFirstChild"Rokakaka Fruit" then
return
end
local human = char["Humanoid"]
local location = player.Character.HumanoidRootPart.CFrame
player:LoadCharacter()
human.WalkSpeed = 16
human.JumpPower = 50
player.Character.HumanoidRootPart.CFrame = location
if player.Data.Stand.Value > 1 then
player.Data.Stand.Value = 1
end
end)

3 comments
Thanks! this really helped!
Quick question, where does the last script go? local or server? and where do i put it sorry if this sounds dumb
Nvm figured it out, Thanks!