Hello. I’m working on a project and there is a Rope Strecher gamepass. But, When you equip the strecher, You are invisible anad the strecher too. Can someone please help me ?
The strecher contain:
Welds
RodConstraints
Attachments
StarterGui
Values
Here the script:
local player = game.Players.LocalPlayer.Character
local Anchor = false
local qLooped = false
local eLooped = false
local Rope = Instance.new(“NumberValue”)
Rope.Parent = script.Parent
Rope.Name = “RopeLength”
local RopeLength = script.Parent:WaitForChild(‘RopeLength’)
local Rope = nil
local UserMouse = game:GetService(‘Players’).LocalPlayer:GetMouse()
script.Parent.Parent.Equipped:connect(function()
if game.Players.LocalPlayer.Character.Torso.Anchored == false then
game.Players.LocalPlayer.Character.Torso.Anchored = true
local Gui = script.Parent.StretcherGui
local ClonedGui = script.Parent.StretcherGui:Clone()
ClonedGui.Parent = game.Players.LocalPlayer.PlayerGui
end
end)
function CreateRope()
if script.Parent then
script.Parent.RopeConstraint.Length = script.Parent.RopeLength.Value
local NewRope = script.Parent.RopeConstraint
NewRope.Length = RopeLength.Value
NewRope.Visible = true
return NewRope
else
local NewRope = script.Parent.RopeConstraint
NewRope.Length = RopeLength.Value
NewRope.Visible = true
return NewRope
end
end
UserMouse.KeyDown:connect(function(key)
if key:lower() == ‘q’ then
RopeLength.Value = RopeLength.Value + 1
Rope = CreateRope()
elseif key:lower() == ‘e’ then
RopeLength.Value = RopeLength.Value - 1
Rope = CreateRope()
end
end)
script.Parent.Parent.Unequipped:connect(function()
if game.Players.LocalPlayer.Character.Torso.Anchored == true then
game.Players.LocalPlayer.Character.Torso.Anchored = false
game.Players.LocalPlayer.PlayerGui:FindFirstChild(“StretcherGui”):Remove()
RopeLength.Value = 1
Rope = CreateRope()
end
end)
I hope you can help me ! Thanks you in advance