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

Why does roblox sometimes delete or add codes into my script?

Asked by 4 years ago

So , when I test my scripts usually its ok and normal but sometimes it adds a line or removes a line. The worst was that it deleted the whole script and I had to redo it.

local InRadians = math.rad(28)
local cos = math.cos(InRadians)
local t = game.Players.LocalPlayer.PlayerGui:WaitForChild()
local label = t.ScreenGui.TextLabel
t.Text = cos

This is the script I wrote (it doesnt work and i am trying to fix it)

When I run the script this happens

local InRadians = math.rad(28)
local cos = math.cos(InRadians)
local t = game.Players.LocalPlayer.PlayerGui:WaitForChild()
local label = t.ScreenGui.TextLabel
t.Text = cos
t.Text = cos -- It added a line automatically without me doing it

It happened a few times already so I just wanna know if anybody is experiencing this as well?

0
that's weird, could it be a plugin you have installed? i highly doubt it's roblox studio. riceburrito16 40 — 4y
0
i have 4 plugins but i dont think that if its the plugin it could have been an accident cause my plugins are all for building and just nothing to do with scripting. also i dont use free models so it cant be free models fault right? RebornedSnoop 175 — 4y

1 answer

Log in to vote
2
Answered by 4 years ago

Roblox Studio does not delete or add lines of code. It is highly likely someone who has access ro edit your game removed them.

0
Sorry what do you mean by "access ro edit" is that team create? If that is team create then its not possible as I work alone. RebornedSnoop 175 — 4y
Ad

Answer this question