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

Why Does My Script Work Fine In Test Mode But Not In Play Mode & Output Shows No Errors?

Asked by 5 years ago

I recently began work on FunButtons, a small gui that, as the name implies, has many fun buttons. However, all of the buttons worked in test mode, yet they don't work in accurate test mode & when playing on an actual server. Even more weird is that they show no errors in the output. I fixed one of them by switching it to a local script, but the other one still didn't work, local script or normal script. Here's the script I'm dealing with:

local player = game.Players.LocalPlayer local torso = player.Character.HumanoidRootPart

local angV = Instance.new("BodyAngularVelocity") angV.Parent = torso angV.Name = "RotV" angV.AngularVelocity = Vector3.new(0,0,0) angV.MaxTorque = Vector3.new(0,10000000,0)

script.Parent.TextButton.MouseButton1Click:Connect(function() local intE = script.Parent.TextBox.Text torso.RotV.AngularVelocity = Vector3.new(0,intE,0) end)

(A simple script that is supposed to add a BodyAngular velocity to the player and lets them change the speed of it via a text box.) This no errors thing isn't a glitch with studio, because one of the scripts I put on the server did show errors in the output. I found a couple of post by various people that had similar issues, but they weren't helpful enough to warrant me not posting here.

Note: I'm relatively new to scripting so It may be longer/harder to explain things. Just saying :/

0
code blocks Mr_Unlucky 1085 — 5y
0
Don't Capitalise Every Letter In A Sentence User#24403 69 — 5y
0
That was just for the title. SnowBear692 0 — 5y
0
he got u good w the grammar rules incaspaz hehe Gey4Jesus69 2705 — 5y
View all comments (3 more)
0
sick! me am god wiht gamar so i ll ace spel test A++++= SnowBear692 0 — 5y
0
oof use code blocks Formidable_Beast 197 — 5y
0
what are code blocks? SnowBear692 0 — 5y

Answer this question