Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Speed/Slow Part
- function speed(part)
- local humanoid = part.Parent:FindFirstChild("Humanoid")
- if humanoid then
- humanoid.WalkSpeed = 16*5
- humanoid.JumpPower = 50*2
- end
- end
- script.Parent.Touched:Connect(speed)
- 2. teleport
- local Teleport_To_This_Tag = "0001"
- function findTele(tag)
- local tele = nil
- function scan(p)
- for _,v in pairs(p:GetChildren()) do
- if ((v.Name == "Telepad") and (v:findFirstChild("Tag"))) then
- if (v.Tag.Value == tag) then tele = v break end
- end
- if (#v:GetChildren() > 0) then scan(v) end
- end
- end
- scan(game:service("Workspace"))
- return tele
- end
- script.Parent.Touched:connect(function(h)
- local p = game:service("Players"):GetPlayerFromCharacter(h.Parent)
- if not (p) then return end
- if (p:findFirstChild("JustTeleported")) then return end
- if not (findTele(Teleport_To_This_Tag)) then return end
- local tele = findTele(Teleport_To_This_Tag)
- if (tele) then
- if (p.Character) then
- p.Character:MoveTo(tele.CFrame.p+Vector3.new(0,3.25,0))
- local t = Instance.new("Weld")
- t.Name = "JustTeleported"
- t.Parent = p
- delay(1.5,function() t:remove() end)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement