of     1   

pawel630
#228153673Monday, November 27, 2017 7:30 PM GMT

Could anyone help me make a script that when you touch a part it moves you up by ## studs? Or a script that when you touch a part it checks your team and then if you're in a certain team then it teleports you to a certain position? Thanks , pawel630.
spinywind
#228157999Monday, November 27, 2017 9:18 PM GMT

local Part = game.Workspace.Part Part.Touched:Connect(function(Hit) if Hit.Parent:FindFirstChild("Humanoid") then Hit.Position = Hit.Position + Vector3.new(0,10,0) end; end);
iiNemo
#228158144Monday, November 27, 2017 9:21 PM GMT

^ that moves whatever body part that is touched by 5 and would remove the limb. Fish Are Friends, Not Food
spinywind
#228158210Monday, November 27, 2017 9:23 PM GMT

Oops, yea your right sorry bout that Use this: local Part = game.Workspace.Part Part.Touched:Connect(function(Hit) if Hit.Parent:FindFirstChild("Humanoid") then Part.Position = Part.Position + Vector3.new(0,10,0) end; end);
pawel630
#228185471Tuesday, November 28, 2017 9:26 AM GMT

Ok , thx ill try it out :D
pawel630
#228185565Tuesday, November 28, 2017 9:40 AM GMT

Hmmm , it doesn't work :/. I touch it and nothing happens.
pawel630
#228185584Tuesday, November 28, 2017 9:43 AM GMT

What the script does is move up a brick called "Part" by ## studs in the Workspace. So when you touch a brick with that script in it it will move the brick called "Part" up by ## studs in the Workspace.
arcsec
#228185732Tuesday, November 28, 2017 9:58 AM GMT

local PositionToTeleportTo = Vector3.new(0, 0, 0) Part.Touched:Connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Humanoid.Health > 0 and hit.Parent:FindFirstChild("HumanoidRootPart") then hit.Parent.HumanoidRootPart.CFrame = CFrame.new(PositionToTeleportTo) end end)
pawel630
#228185749Tuesday, November 28, 2017 10:00 AM GMT

So you would have to change local Part = game.Workspace.Part to something that would target the player. I don't know how to do this since im not that much of an expert in scripting I might be fully wrong.
pawel630
#228185889Tuesday, November 28, 2017 10:14 AM GMT

###### it doesn't know what "Part" means in your script.
pawel630
#228185953Tuesday, November 28, 2017 10:20 AM GMT

I put the location of the brick to touch in the script but it just respawns me.
pawel630
#228185986Tuesday, November 28, 2017 10:24 AM GMT

It teleports me to the spawn point*
pawel630
#228186240Tuesday, November 28, 2017 10:51 AM GMT

Anyone else who could help me?
Kiriot22
#228186587Tuesday, November 28, 2017 11:17 AM GMT

local part = workspace.Part local studs = 10 part.Touched:connect(function(p) if p.Parent:IsA"Model" and p.Parent:FindFirstChildOfClass("Humanoid") then p.Parent.HumanoidRootPart.CFrame = p.Parent.HumanoidRootPart.CFrame * CFrame.new(0,studs,0) end ebd)
pawel630
#228186591Tuesday, November 28, 2017 11:17 AM GMT

It can also be a script that when you touch a part it checks your team and then if you're in a certain team then it teleports you to a certain position. Like , let's say the player who touches the part is in "Red" team it will teleport him to ######## ####### ####### for example.And if the player is in "Blue" team it will teleport him to ###### ###### ######
pawel630
#228186630Tuesday, November 28, 2017 11:20 AM GMT

Wow , ###### your script worked :D. Thanks so much.
pawel630
#228187192Tuesday, November 28, 2017 12:05 PM GMT

Does this script not work in ################## Because I have the model in ReplicatedStorage and when I join the game it doesnt work :/. It works if it's in Workspace.
pawel630
#228190040Tuesday, November 28, 2017 3:02 PM GMT

It works in studio but it doesn't work in the actual game. Could someone tell me what I am doing wrong?

    of     1