Still have questions? Join our Discord server and get real time help.
0

# How do I update my script to work with the removal of experimental mode?

Hi i'm a beginner scripter and I'm currently working on a game however my script has stopped working after the removal of experimental mode. Can I please get some help on trying to make this script work. The game I'm making is a simulator and I only want the script to work when a player has picked a certain class. Thanks

also I thought I should mention that this is my first post.

Here is my script:

--Speed selected

local function touched()
if game.StarterGui.ScreenGui.Speed.MouseButton1Click then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed + 3
local clone = script.Parent:Clone()
clone.Parent = game.ServerStorage
script.Parent:Destroy()
wait(60)
clone.Parent = game.Workspace
end
end

game.Workspace.Boost.Touched:Connect(touched)

--fly selected

local function touched1()
if game.StarterGui.ScreenGui.Fly.MouseButton1Click then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed + 0.5
local clone = script.Parent:Clone()
clone.Parent = game.ServerStorage
script.Parent:Destroy()
wait(60)
clone.Parent = game.Workspace
end
end

game.Workspace.Boost.Touched:Connect(touched1)

--Strength selected

local function touched2()
if game.StarterGui.ScreenGui.Strength.MouseButton1Click then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed + 0.5
local clone = script.Parent:Clone()
clone.Parent = game.ServerStorage
script.Parent:Destroy()
wait(60)
clone.Parent = game.Workspace
end
end

game.Workspace.Boost.Touched:Connect(touched2)


I currently have this inside a script inside a part called 'Boost' which is held in the workspace Please tell me if anymore information is needed to solve my problem. Thanks again

0
You can't access local player through normal scripts... mixgingengerina10 136 — 7mo
0
could you please explain what game.StarterGui.ScreenGui.Strength.MouseButton1Click is in your world? RiskoZoSlovenska 192 — 7mo