#(SOLVED NO LONGER HELP NEEDED)
41 messages · Page 1 of 1 (latest)
** You are now Level 2! **
** You are now Level 5! **
add it into the script
while idle.Stopped == false do
Mystand:WaitForChild("HumanoidRootPart").CFrame = HumanoidRP.CFrame * CFrame.new(2,0,2)
end
the summon one
try that
check if it works
after
it would look like this
do you have output?
oh wait im sorry i did something wrong
local stopped
idle.Stopped:Connect(function()
stopped = true
end)
while stopped == false do
Mystand:WaitForChild("HumanoidRootPart").CFrame = HumanoidRP.CFrame * CFrame.new(2,0,2)
end
yes
doesnt work?
replace "local stopped" for local stopped = false
can i see the output?
** You are now Level 3! **
the error you get
at the oputput window
what do you mean
yes
can i see the script that you have right now
alright
change the whole script for this one:
local rp = game:GetService("ReplicatedStorage")
local Stand = rp:WaitForChild("Stand")
Stand.OnServerEvent:Connect(function(player,active)
if active == false then
local Character = player.Character
local HumanoidRP = Character:WaitForChild("HumanoidRootPart")
local Folder = Instance.new("Folder",workspace)
Folder.Name = player.Name.." Stand"
local Mystand = script:WaitForChild("Dummy"):Clone()
Mystand.Parent = Folder
Mystand:WaitForChild("HumanoidRootPart").CFrame = HumanoidRP.CFrame * CFrame.new(2,0,2)
local animControl = Mystand:WaitForChild("AnimControl")
local idle = animControl:LoadAnimation(script:WaitForChild("Idle"))
idle:Play()
local weld = Instance.new("ManualWeld")
weld.Name = "Stand Weld"
weld.Part0 = Mystand
weld.Part1 = HumanoidRP
weld.C0 = Mystand:WaitForChild("HumanoidRootPart").CFrame:inverse() * HumanoidRP.CFrame
weld.Parent = weld.Part0
local stopped = false
idle.Stopped:Connect(function()
stopped = true
end)
while stopped == false do
Mystand:WaitForChild("HumanoidRootPart").CFrame = HumanoidRP.CFrame * CFrame.new(2,0,2)
end
end
end)
Stand.OnServerEvent:Connect(function(player,active)
if active == true then
local Character = player.Character
local HumanoidRP = Character:WaitForChild("HumanoidRootPart")
local myStand = workspace:WaitForChild(player.Name.." Stand")
myStand:Destroy()
Stand:FireClient(player)
end
end)
let me see the output again
wait
alright
change so
local rp = game:GetService("ReplicatedStorage")
local Stand = rp:WaitForChild("Stand")
Stand.OnServerEvent:Connect(function(player,active)
if active == false then
local Character = player.Character
local HumanoidRP = Character:WaitForChild("HumanoidRootPart")
local Folder = Instance.new("Folder",workspace)
Folder.Name = player.Name.." Stand"
local Mystand = script:WaitForChild("Dummy"):Clone()
Mystand.Parent = Folder
Mystand:WaitForChild("HumanoidRootPart").CFrame = HumanoidRP.CFrame * CFrame.new(2,0,2)
local animControl = Mystand:WaitForChild("AnimControl")
local idle = animControl:LoadAnimation(script:WaitForChild("Idle"))
idle:Play()
local stopped = false
idle.Stopped:Connect(function()
stopped = true
end)
while stopped == false do
wait()
Mystand:WaitForChild("HumanoidRootPart").CFrame = HumanoidRP.CFrame * CFrame.new(2,0,2)
end
end
end)
Stand.OnServerEvent:Connect(function(player,active)
if active == true then
local Character = player.Character
local HumanoidRP = Character:WaitForChild("HumanoidRootPart")
local myStand = workspace:WaitForChild(player.Name.." Stand")
myStand:Destroy()
Stand:FireClient(player)
end
end)
no problem
bye