Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Why wont this work? can you help me?

Asked by
viison -5
10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

Been trying for hours now, what's the problem? http://pastebin.com/cn1TqjLJ <--- full code

EDIT: This my may help you to find the error, http://i.imgur.com/hD4KdwP.png

I need really need help.

What's wrong :c This is line 166

 function Watch()
if tw or Workspace.GameProperties.Survival.Value then
return
end
tw = true
char = player.Character
wb.Text = "Joining..."
trans(char,0.2)
wait()
trans(char,0.4)
wait()
trans(char,0.6)
wait()
trans(char,0.8)
wait()
trans(char,1)
wait(0.09)
char:FindFirstChild("Torso").CFrame = CFrame.new(Vector3.new(Workspace.Watchers.Position.X,Workspace.Watchers.Position.Y+5,Workspace.Watchers.Position.Z))
player.TeamColor = Workspace.Watchers.BrickColor
script.Parent.keepregeninghealth.Value = true
script.Parent.oldhealth.Value = char.Humanoid.Health
if char:FindFirstChild("Humanoid") ~= nil then
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge
end
wait()
if char:FindFirstChild("Humanoid") ~= nil then
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge
end
trans(char,0.8)
wait()
if char:FindFirstChild("Humanoid") ~= nil then
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge
end
trans(char,0.6)
wait()
if char:FindFirstChild("Humanoid") ~= nil then
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge
end
trans(char,0.4)
wait()
if char:FindFirstChild("Humanoid") ~= nil then
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge
end
trans(char,0.2)
wait()
if char:FindFirstChild("Humanoid") ~= nil then
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge
end
trans(char,0)
wait()
if char:FindFirstChild("Humanoid") ~= nil then
char.Humanoid.MaxHealth = math.huge
char.Humanoid.Health = math.huge
end
if not mobile.Value then
wb.Text = "Join the Watchers"
else
wb.Text = "Watchers"
end
tw = false
end



0
What is the 'trans' function you're trying to call? Tkdriverx 514 — 10y

Answer this question