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

Why don't these 3 scripts work on Clients? [SOLVED]

Asked by 7 years ago
Edited 7 years ago

My Scripts Aren't Working! The first one is supposed to choose the map the player is playing in.

function choosemap()

local loading = script.Parent:WaitForChild("Loading")
local slide = loading:WaitForChild("SlideScript")
local joke = loading.TextLabel:WaitForChild("Script") -- Check For Actual Object To Load
local image = script.Parent:WaitForChild("Image")
local move = image:WaitForChild("DropScript")
mapnum = math.random(1) 
print("Map Chosen")

wait(1)
if mapnum == 1 then
wait(2)
script.Parent.Text.Text = "Map Chosen!"
wait(1)
script.Parent.Image.ImageLabel.Image = "rbxgameasset://Images/Construction Site"
script.Parent.Text.Text = "Construction Site"
script.Parent.Difficulty.Text = "Difficulty: Easy"
move.Disabled = false -- It Drops
wait(3)
move.Disabled = true -- It Climbs
script.Parent.Image.ImageLabel.Image = ""
script.Parent.Text.Text = "Game in progress"
script.Parent.Difficulty.Text = ""
p = game.Players:GetChildren()
slide.Disabled = false -- It Slides.
joke.Disabled = false -- It Jokes
wait(3)
joke.Disabled = true
slide.Disabled = true
game.Lighting.ConstructionSite:clone().Parent = game.Workspace
for i= 1, #p do             
    p[i].Character.Torso.CFrame = CFrame.new(124, 2.5, -211)
end
wait(15.85)
game.Workspace.ConstructionSite:Destroy()
script.Parent.Text.Text = "Intermission 10 seconds"
script.Parent.Text.Script.Disabled = false
wait(10)
choosemap()
end

end --Function end

wait(10)
choosemap()

This second one is the SlideScript. The one that controls the loading screen.

local frame = script.Parent
local animType = "Sine"
local animDirection = "InOut"

frame:TweenPosition(UDim2.new(0, 0,0, 0), animDirection, animType, 0.6, true)
wait(3)
frame:TweenPosition(UDim2.new(1, 0,0, 0), animDirection, animType, 0.6, true)

This last script is the DropScript. The one that controls the image of the map.

local frame = script.Parent
local animType = "Sine"
local animDirection = "InOut"

frame:TweenPosition(UDim2.new(0.5, 0,0, 0), animDirection, animType, 0.6, true)
wait(3)
frame:TweenPosition(UDim2.new(0.5, 0,-2, 0), animDirection, animType, 0.6, true)

Okay, since the other one got deleted for not being detailed enough. Here is the specific explanation of this. All I want is the first one to activate the DropScript and the SlideScript in the ROBLOX Client. That's all.

0
error message? DrPredablox 153 — 7y
0
Did it work in studio but not work in game? BlackOrange3343 2676 — 7y
0
If your working with GUI's then use Local scripts NexeusX 137 — 7y

Answer this question