Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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?

2 comments

0

that's weird, could it be a plugin you have installed? i highly doubt it's roblox studio.

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?

1 answer

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

1 comment

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.