How to make a game with a kicking system when you step on something (e.x. block, figure,model)
I am making a game and i need to add a kicking system because of my friends using the (idk what to say i think blocks) to use bugs and suddenly tp to the end and idk why so i am trying to make a game with kicking system in that block to make it fair. Can anyone tell me the script for it?
It is as simple as adding a Touched event to said part and using the :Kick method on the player that touched it.
1 Like
You would do something like this:
local Players = game:GetService("Players")
local Part = script.Parent --Here is the brick
Part.Touched:Connect(function(hit)
if Players:GetPlayerFromCharacter(hit.Parent) then
Players:GetPlayerFromCharacter(hit.Parent):Kick("Put your message here")
end
end)
1 Like
Ok ill try it and let you know
Thanks it worked! Now time to call my friends and do the obby without bugging to the end
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.