|
function isplayeringame()
if game.Players:FindFirstChild("Player1") then
if game.Players.Player1 == nil then
print("Player1 has left the game!")
end
end
end
isplayeringame() |
|
|
|
When you're making functions in that particular way, you need to add an end) to close the function, an example would be
game.workspace.Part.Touched:connect(function()
end) |
|
|
This is an example,
while wait() do
if script.Parent.Text == "TextHere" then
print("Success")
break
end
end
--Assuming the parent is a TextBox or something similiar. |
|
|
|
script.Parent.Touched:connect(function(player)
if player.Parent and game.Players:FindFirstChild(player.Parent.Name) then
player.Parent.Character:MoveTo(game.Workspace.TeleportTG.Position)
end
end
end)
When using the Touched events, you have to specify and add checks to make sure the "Player" is an actual player because touching it with limbs will only check the limb's name. |
|
|
I'm sorry, the Parent of the limb was the Character, just remove the "Character" part. |
|
|
Remove the "Name" in script.parent.parent.Name.Text |
|
|
Actually, explain to me how the script works and what kind of script it is in. |
|
|
|
Ah, in roblox studio go to "View" and click "Output". |
|
|
Try placing the sound in the player's PlayerGui. |
|
|
Add a break to stop while true do. |
|
|
Oh, just copy and paste what's in the output and I'll explain it to you. |
|
|
player = game.Players.LocalPlayer
mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
if (key == "x") and (script.Bool.Value == false) then
script.Bool.Value = true
while wait(.09) do
a = Instance.new("Part",game.Workspace)
a.Anchored = true
a.Size = Vector3.new(4.8, 0.2, 5.4)
a.CFrame = CFrame.new(player.Character.Torso.Position) + Vector3.new(0,-4,0)
a.Transparency = 1
game:GetService("Debris"):AddItem(a,1)
[[--I want to stop the while true do script here--]]
break
end
elseif script.... |
|
|
You're going to have to start restructing the script. |
|
|
You could just make a script that inserts a mesh into the character's limb upon a button being touched. |
|
|
Try something like this,
Child = game.Workspace:FindFirstChild("111")
Child:Destroy() |
|
|
If you're referring to building the physical areas of the map, I would suggest making a thread in building helpers. As for the scripting part, try looking up GUI's on the Roblox Wiki to help you understand how to use them better. |
|
|
I would suggest using,
while wait() do
end |
|
|
Alright, an example would be,
Rotation uses Vector3, an example would be,
Part.Rotation = Vector3.new(XAxisNumbHere,YAxisNumberHere,ZAxisNumberHere) |
|
|
Well, there's multiply ways to do that, you could just do something such as,
Part.Rotation = Vector3.new()
wait(SecondsHere)
Part.Rotation = Vector3.new() |
|
|
Could you show us some of the script?. |
|
|
It's killing you because instead of moving all of the limbs, it's separating the "Torso" from the others, try using this,
local TeleIn = script.Parent
local TeleOut = script.Parent.Parent:FindFirstChild("TeleOut")
TeleIn.Anchored = true
TeleIn.Touched:connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
wait(2)
hit.Parent:MoveTo(Vector3.new(TeleOut.Position))
end
end)
More information on the :MoveTo() method can be found here,
http://wiki.roblox.com/index.php?tit... |
|
|
Contrary to my reply, you can actually just use,
hit.Parent:MoveTo(TeleOut.Position)
when you're using :MoveTo(). |
|