question_score
stringclasses
21 values
title
stringlengths
6
119
question_userid
stringlengths
4
10
question_user
stringlengths
3
20
question_user_score
stringclasses
496 values
question_datetime
stringdate
2014-02-01 23:57:31
2023-04-02 01:40:15
question
stringlengths
0
11k
question_id
stringlengths
1
6
answer_count
stringclasses
8 values
answer_id
stringlengths
0
6
answer_score
stringclasses
18 values
answer_userid
stringclasses
946 values
answer_user
stringclasses
963 values
answer_user_score
stringclasses
692 values
answer_datetime
stringlengths
0
19
answer
stringlengths
0
10.7k
0
How to create and manipulate lineforces via code?
254394495
Insultifying
0
2022-05-05 22:18:10
<p>I'm trying to make an active ragdoll, and im using lineforces and attatchments to make him ball up, but the lineforces wont respond to my code, even when i had them physically placed into the ragdoll dummy's limbs. Heres my code:</p> <pre class="brush: lua">lf1 = Instance.new("LineForce",bodyparts.LeftArm) lf1.React...
129921
0
Is ther a way to make a gui that only new players see?
1722023006
OhBrotherGaminYT
11
2021-04-09 23:12:18
<p>I want to make it so that new players get to see a tutorial gui and then when they come back, they dont have to see the tutorial, is there any way to do that?</p> <p>Thanks!</p>
122202
1
111320
0
672835190
Superexperiencedguy
184
2021-04-10 05:50:11
<p>You can achieve this by using datastores. Here is a <a target="_blank" href="https://devforum.roblox.com/t/how-to-detect-a-new-player-everytime-a-player-joins/686026/6">link</a> you can try :)</p>
0
[SOLVED] How do I make PlayerRemoving local?
282084648
CoolBlueJay000
6
2021-01-14 02:00:31
<p>Okay so, I'm trying to make a claiming door, but I need it to be so that when the player THAT OWNS the door gets their room wiped so that someone else can claim it. But I don't know how to make this local because whenever someone leaves it makes all of the rooms available. Even though I want it to be for that player...
118663
2
108539
0
921515553
IckyTheSuperior
74
2021-01-14 03:02:32
<p>I'm currently busy scripting something but I'll try to help you when I'm done!</p>
3
Why wont this script work properly?
38498021
capinbuilda
15
2016-02-13 03:26:36
<pre class='brush: lua'>local part = script.Parent part.Touched:connect(function(hit) if hit.Parent then if hit.BrickColor == "Dark orange" and hit.Material == "Wood" then hit.Parent.BrickColor = BrickColor.Black() end end end) </pre> <p>It's supposed to, when a part is made of dark ...
27331
0
Is it possible that i can make a starter character for only 1 player?
1138890875
RSBlilMelly
0
2020-08-03 07:51:44
<p>So i made a starter character... And i only want it to go to one person and that's me but i don't know how. i didn't do any scripting by the way.</p>
110611
0
How to limit the zooming out distance when player touches brick?
6500278
Harrydamastr
35
2021-10-18 23:51:34
<p>Hello,</p> <p>I am creating a maze in one of my games and I would like it if players weren't able to zoom out whilst doing it to cheat their way to the finish.</p> <p>I took some code from an old post on here about limiting the camera zoom distance; <a target="_blank" href="http://">https://scriptinghelpers.org/ques...
127913
0
ViewPortFrame not tweening with my script?
379782887
Shounak123
160
2020-09-15 18:15:25
<p>What I want is that when my datastore scripts get loaded from the ServerScriptService, it fires a RemoteEvent that runs the <em>Intro</em> script below. It fires the event, and the script works perfectly. But the ViewPortFrame doesn't tween from it's position.</p> <pre class='brush: lua'>local ViewPortFrame = script...
113200
1
how to make a regen script that cost money to regen a model?
609694350
thedukke1
9
2021-04-07 09:22:27
<p>basically what the title said</p>
122105
1
How can make a point store system that gives points when killing a player?
1250591849
Roblox28721
5
2021-06-10 18:36:40
<p>Im trying to create a gui point system that changes the value and text of the gui whenever you kill someone, I want to use these points to buy items in a gui store for in game combat. I've created a TextLabel with the text "Points:" and then another TextLabel with the number of points acquired when killing a player....
124254
0
why is there a remote event called gamer when i play?
391170608
superspeedr1234
60
2020-05-05 01:44:38
<p>is this supposed to happen or is it a virus i press play or run and i have a remote event named gamer</p>
101942
0
Datastore won't load data?
1998193337
MrBucketOfficial
39
2022-11-15 00:51:55
<p>Code below won't load data, no errors, I have no idea what's going on.</p> <pre class='brush: lua'>local dataStoreService = game:GetService("DataStoreService") local cubeDataStore = dataStoreService:GetDataStore("Cubes") game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder",...
132281
0
&quot;Attempt to call a table value&quot; when changing a part's color on click?
850697920
1uqt
2
2022-11-14 23:18:39
<p>My code is hooked up to a button that's supposed to change a part's color when clicked. But when its clicked, it just keeps giving me the error "attempt to call a table value". I've even tried the code by itself, and it works perfectly. So I don't really understand what's going on.</p> <pre class="brush: lua">local ...
132280
0
[ANSWERED] I made a script with UserInputService. Why isn't this working?
177515282
andarwniceguyjr
0
2021-07-21 05:42:38
<p>I am working on a simple run script, and using UserInputService to detect when the player presses LeftShift.</p> <p>Code:</p> <pre class='brush: lua'>local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input) if input.UserInputType == Enum.KeyCode.LeftShift t...
125558
1
Free Game Access to certain people and Rewards if Game Access bought?
42139522
kapitanovaskapandr
0
2014-04-16 15:45:58
<p>I would like to ask you's guys, how would I make a script that would allow certain people into the game without paying the Game Access? I'm making a Dangerous Sea World Game and currently it's in testing mode, I would like for my staff to access it for free, I heard that you could do that in the Forums... my guess i...
2169
0
Why won't RemoteEvent work?
303900
attapi0
20
2015-04-20 16:54:01
<p>This is a pretty straightforward problem. Here's my server script (Located in ServerScriptStorage).</p> <pre class="brush: lua">GameInProgress = false if GameInProgress == false then GameInProgress = true wait(1) gameStart = Instance.new("RemoteEvent") gameStart.Parent = script.Parent gameStart.N...
16872
2
20271
1
34209956
M39a9am3R
3210
2015-04-21 02:09:10
<p>Alright, since it has been requested. I will elaborate further what I mean by my own question to the Asker.</p> <blockquote> <p>Why not have ServerScript placed in ServerScriptService, have remote event placed in ReplicatedStorage, and have the client side script access the RemoteEvent and communicate to the server?...
0
how do i fix the expected ')' error?
1775753594
Not_prototype
26
2020-11-23 12:05:00
<pre class='brush: lua'>local Arrow = script.Parent local Click = Arrow:WaitForChild("Click") Click.MouseClick:Connect(function(player) local Backpack = player:FindFirstChild("Backpack") if Backpack then local Stands = game:GetService("ServerStorage"):WaitForChild("Stands") local randomStand = m...
116202
1
106626
0
161757041
krowten024nabrU
463
2020-11-23 12:15:54
<p>Maybe add a <code>)</code> after the last end? like:</p> <pre class='brush: lua'> end end end end) -- here </pre> <p>The reason for this is that: the function is enclosed in parentheses of the <code>:Connect()</code> signal. That's why we need to add an extra <code>)</code> at the end.</p>
0
What does #permission mean in this script?
14971205
Yeevivor4
155
2014-03-10 22:39:31
<pre class="brush: lua">for i = 1,#permission do if (string.upper(name) == string.upper(permission[i])) then return true end end </pre> <p>I am a beginning scripter and I just encountered a Card Door Model that I searched and it had this. I understand the rest but this is the part where I don't understand. Any help?</p...
616
3
987
2
21190567
Kratos232
105
2014-03-11 08:23:20
<p>the "for i =" is a basic for loop that is used to do things multiple times. For example, if you wanted to do something 4 times you could do this:</p> <pre class="brush: lua">for i = 1, 4 do print(i) end </pre> <p>You don't need to use for i, you could use for x, or even a work like for Childs = 1, 3 do. And you can ...
0
Datastore is not saving saving changes in data despite no errors in output?
3699288
Robb12
12
2019-09-13 04:55:27
<p>Hi I have been trying to code a data store and have run into an issue with the code I am trying to use</p> <p>the script doesn't show any errors in the output bar, it just does not save any change in the data so at this point I am at a loss for what to do</p> <pre class="brush: lua">local DSS = game:GetService("Data...
87370
0
How can I automatically assign a player name to a team in ROBLOX?
22539389
fox9191
0
2017-01-11 22:43:20
<p>Okay, so I was building a place that involves staff members and normal players for an interview center. The group doesn't have anybody ranked yet so I'm not doing that kind of script where a certain rank gets the Staff team. I can't really script, so it would be very helpful if someone would do that.</p> <p>Put the ...
38947
1
What does this output mean? Weld Parent Error
13650732
Tesouro
407
2014-04-17 00:11:02
<p>I made this script:</p> <pre class='brush: lua'>function sit(child) if child.Name == "SeatWeld" then character = child.Part1.Parent if player.Value ~= character.Name then -- check if the player is the one I want child:Destroy() end end end script.Parent.ChildAdded:connect(...
2317
0
How would i make a horse script, like make it move with wasd and jump when sitting on it?
1212888418
sheiki01
0
2022-05-04 12:35:57
<p>i am too new for roblox studio to know what to do, ive tried taking all the childs from other working horse models and put them into my horse. Ive also tried adding an invisible vehicle but that wont make it jump or move cus it got lke stuck</p>
129907
5
What is Coroutine?
60126402
RanBlox04
30
2014-05-08 23:21:15
<p>For a long time life of Lua, one thing that is really makes me to ask. What is Coroutine and other Coroutines? This kind of Lua that I want to be use at my scripts? Please help me!</p>
4544
0
How do I stop my CFrame Lerping from flinging the plane?
141548605
sasial
26
2022-06-19 04:19:38
<p>As you can see in the <a target="_blank" href="https://streamable.com/ol646r">video</a>, the plane is flinging when it moves:</p> <p>Code: (ran on heartbeat)</p> <pre class='brush: lua'> const delta = (tick() - this.delta) / this.speed; if (delta &lt; 1) { print(delta); const p...
130401
0
The lightsaber doesn't show up. I think this is the part where I'm going wrong. Any help?
264495676
ZenTGE
4
2018-02-07 16:42:31
<p>local cf = CFrame.new local ang = CFrame.Angles local v3 = Vector3.new local rad = math.rad</p> <p>local camera = workspace.CurrentCamera local render = game:GetService("RunService").RenderStepped local rstorage = game.ReplicatedStorage local sabersStorage = rstorage.SabersStorage local remotes = sabersStorage.Remot...
53322
1
52632
0
97994113
TdaGreat04
76
2018-02-08 19:09:41
<pre class='brush: lua'>local camera = workspace.CurrentCamera local render = game:GetService("RunService").RenderStepped local rstorage = game.ReplicatedStorage local sabersStorage = rstorage.SabersStorage local remotes = sabersStorage.Remotes local jointsRemote = remotes.Joints local takeDamage = remotes.TakeDamage l...
0
Text in TextLabel Filtering script,not working,Can anyone help?
125258800
SpringtraPlayer
16
2019-03-28 18:24:52
<p>I only want this part fixed,is a server Script inside of a TextLabel. It should filter any bad word typed.</p> <blockquote> <p>TextService = game:GetService("TextService")</p> <p>text = script.Parent.Text</p> <p></p> <p>filteredTextResult = TextService:FilterStringAsync(text)</p> <p>wait()</p> <p>script.Parent.Text ...
78275
4
aaaaaahhhhhhh, Why does my for loop only go up to 0.99?
368373078
HilyrHere
79
2018-10-27 13:44:43
<pre class='brush: lua'>for i = 0,1,0.01 do print(i) end </pre> <p>IT only prints up to .99 and idk why, I put this code in the command bar and it prints to .99 aswell</p>
69553
2
66467
3
17217178
ozzyDrive
670
2018-10-27 16:58:01
<p>The issue is caused by floating point precision error. Due to the 100 addition operations you're doing, the binary value loses precision as it has a finite length and the bit-representation gets too long.</p> <p>You can see the 0.99 you're getting is not exactly 0.99 with this piece of code:</p> <pre class='brush: l...
0
My function keeps repeating and turning the inQueue variable back to false?
1528335743
VictoreRoyale667
8
2022-11-13 21:23:11
<p>This is how the problem is happening. When i touch the part it runs this function multiple times. And I have a problem with the "inQueue" variable. I know that it is setting iot back to false and that is the problem but i do not know where to set it to true and false.</p> <p>Here is my code. (THE PROBLEM IS HAPPENIN...
132271
1
119462
0
111567127
Jay123abc2
181
2022-11-14 18:42:10
<p>The InQue variable is being made separately for each time the function is reran, this means that: - The player touches it, a new variable is made in that function. - If the player touches it again, it will create that variable again. So therefore, it is made every time the function is made and will be false. To fix ...
0
This part spawning script just doesnt work?
484273808
fluff_162
7
2022-05-12 17:35:02
<p>i am trying to make this part spawn a part when pressed ( with cooldown ), please explain why it doesnt work:</p> <p>UserInputService = game:GetService("UserInputService")</p> <p>local rannum = 1</p> <p>local debounce = true</p> <p>local cooldown = 0.5</p> <p>UserInputService.InputBegan:Connect(function(key, typing)...
129979
1
117401
0
535088252
per_chuk
17
2022-05-14 08:29:34
<p>how about clone a part in replaced storage it will be easier to make due to the colour, texture and mesh is same what you need to do is adjust the CFrame</p>
0
How do I add knockback using this script?
1961959172
imnotaguest1121
7
2021-10-05 11:19:51
<p>So I followed this roblox tutorial: https://www.youtube.com/watch?v=CxATQL-B-Kk&amp;list=WL&amp;index=1</p> <p>And wonder If I could add knockback to It, I remember one roblox script that would print out whenever the tool has been: Equipped Clicked Stops after It clicked Unequipped</p>
127797
1
How do you make a target/enemy locator
15454657
GreekGodOfMLG
244
2014-03-05 04:19:16
<p>Let say your on a opposite team and its a fps, you then see a enemy and it puts a red box around it showing its a enemy and giving its username too. How do you do it?</p>
497
2
833
3
6468416
TheLuaWeaver
301
2014-03-05 19:05:50
<p>You can use either SurfaceGuis, BillboardGuis, or SelectionBoxes+any type of GUI for this. I recommend the third, because SelectionBoxes require the least work for the nicest effect.</p> <p>Once your camera can see the enemy (you can raycast from your camera's coordinateframe to the enemy players), you can instance ...
2
Torso Gui
39048961
ryjaboe
15
2014-02-21 16:31:56
<p>How would I put a Gui in the torso of every character in the game?</p>
200
0
Need help finding variable inside of a module script(dictionary/table)?
180679010
Eric_pokemon
134
2021-02-23 13:56:48
<p>I'm currently creating a skill tree but when I try to find a variable inside of the dictionary and print it, it prints out "nil" and not what's inside of Character</p> <pre class='brush: lua'>local Skills = { Character = { PointsRequired = 0, }; Skill1 = { PointsRequired = 1, }; } Ski...
120560
3
Why does roblox sometimes delete or add codes into my script?
984384728
RebornedSnoop
170
2020-06-18 05:17:46
<p>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.</p> <pre class='brush: lua'>local InRadians = math.rad(28) local cos = math.cos(InRadians) local t = game.Players.LocalPlayer.PlayerGui:WaitForChi...
106706
1
How would I select multiple children of a model?
38498021
capinbuilda
15
2014-06-09 21:29:17
<p>I am trying to unanchor all of the children of a model after 5 seconds. Here's that section of the script..</p> <pre class='brush: lua'>wait (5) game.Workspace.Obstacle1.Children.Anchored = false </pre> <p>I tried on line 2. But it thought I was looking for a brick named Children. Help?</p>
6432
0
How do I clone my tool to a backpack?
676326715
WINDOWS10XPRO
134
2021-01-05 06:39:04
<p>I can clone my tool to the backpack but when I reset it will be gone someone said use a CharacterAdded but I have no idea how I should change my script to after I use CharacterAdded heres the script.</p> <pre class='brush: lua'>--Script made by WINDOWS10XPRO --[[ Title: KeyCardManagerScript Goal: Gives keyca...
118211
0
Working purchase, but no change on the Leaderboard?
20747233
BenHall4433
0
2014-05-05 13:55:58
<p>Hello, I am having problem with Developer Product - the purchase pop-up does work and completed, but the problem I am having that the Leaderboard is not changing it's value.</p> <p><strong><em>Another words: The purchase thing works - just that the Leaderboard doesn't update the Coins after purchase.</em></strong></...
4379
1
Why are these teams not equal?
31504923
rabbi99
617
2020-03-29 12:33:25
<p>So basically, I have a player whose team is Red. And then there's a soldier whose team is also Red. In this short script I want to compare the teams. I tested this script in team Red and right clicked on this soldier and for some reason it does not print out <strong>"Selected by same team!"</strong> And it <strong>D...
97434
0
How to make a round based system?
492019710
AROBLOXUSER12344
19
2022-02-14 02:00:23
<p>Hello, I've been developing a game here for quite some time, a couple months to be exact. I made the game for me and my friends to just mess around and have fun on. We were wanting a 5v5 system, exactly like CS:GO or CB:RO. The thing is, I have absolutely no idea where to even start to make something like rounds or ...
128971
1
Player Stats Not Saving?
29698324
YouCheater
15
2021-04-07 03:13:45
<p>I am trying to save data from a folder in replicated storage, though my script doesn't seem to work as nothing gets saved... I am not sure what I did wrong here. The code will be posted here:</p> <pre class='brush: lua'><br />local DataStoreService = game:GetService('DataStoreService') local WeapStore = DataStoreSer...
122096
2
Return
31655670
Greatgreatgood5
55
2014-03-06 23:58:55
<p>Well, can someone explain to me what the return function in scripts do? Please? :]</p>
532
2
Toggle script for headlights not working?
102254161
squidiskool
200
2020-01-18 01:10:56
<p>Hello, I am trying to make a toggle script for a car's headlights. For some reason, there is nothing happening if I press L. No errors in the console.</p> <pre class='brush: lua'>local toggle = false -- false is Off; true is On function onKeyPress(actionName, userInputState, inputObject) if userInputState == Enu...
93165
2
Vector3 and Vector2
29806839
ConnorVIII
448
2014-03-13 19:48:44
<p>Vector3 and Vector2 where would you use them and what is the difference.</p>
668
2
1071
1
15049169
DragonSkyye
517
2014-03-13 19:52:53
<p>The difference is that Vector3 is 3D (3 Dimensional) Vector2 is 2D, therefor you would use Vector3 with parts.</p> <p>Vector3(x, y, z) Vector2(x, y)</p>
0
How do i make a code saying 1 or higher because im trying to make an attributes thing?
107352658
xxbrobroxx02
11
2018-05-30 14:33:46
<p>local atrib = game.StarterGUI.PlayGUI.Frame.Attributes.Frame.Attribute.TextButton this isn't the whole script but bits of it if attrib.Text == 1 and then i don't know how to say 1 and higher in code and one more thing how do i change the color of a frame or text button</p>
59297
2
57687
0
205083914
MooMooThalahlah
421
2018-05-30 21:21:43
<p>Not sure why you accepted the other answer even though it didn't answer your question.</p> <p>To check whether a variable is higher than or equal to 1 you use <code>&gt;=</code> and to turn a string into a number you use <code>tonumber()</code></p> <p>In the if statement I use <code>tonumber(attrib.Text)</code> twic...
0
Animation not stopping correctly on client?
123585026
NykoVania
231
2023-03-28 06:32:21
<p>I’m having an issue with my animations where it will stop on the Server, but not the Client. A ServerScript requires a module that plays the animations with functions.</p> <p>Here’s an example of the Animation:</p> <p><a target="_blank" href="http://">https://gyazo.com/78f814d42620772003ca9fc87f748b2d</a></p> <p>(Th...
133245
0
my script dosent work and it shows nothing on the output how to fix?
1521480603
NexterDev
9
2020-11-22 14:15:46
<p>i made a script but its not working the thing that it is supposed to do is make the sun appear on click and make it look like its going to explode with sunrays effect</p> <p>here is the script: it also dosent show anything on the output</p> <pre class='brush: lua'>script.Parent.ClickDetector.MouseClick:Connect(funct...
116153
1
106595
0
1751062389
TheEagle722
99
2020-11-22 14:23:59
<p>Roblox reads scripts as me, very, very fast, try to give it a delay. Also try to pcall it, pcalling tests the script if there is a error and prints it to the output, as long as you do it like me.</p> <pre class='brush: lua'>local s,e = pcall(function() script.Parent.ClickDetector.MouseClick:Connect(function() wa...
1
Why isn't the code working when the part is welded?
1752724383
Xyternal
218
2021-05-26 15:25:41
<p>So I was searching up some YouTube tutorial videos, and I wanted to make my boat move. Here is my code.</p> <pre class='brush: lua'>local Engine = game.Workspace.car.Model.Engine.BodyThrust --The Force making the boat move local SForce = game.Workspace.car.Steer.BodyAngularVelocity -- The force making the boat turn ...
123792
2
112862
1
1792778813
Xapelize
2285
2021-05-27 01:22:57
<p>Hey! I believe that you are trying to move an entire boat, but it looks like your welded part is anchored! That's why it wont move, you should make it as a model, and go to the model > properties > PrimaryPart, set it to the base part of the boat.</p> <p>Now you should move it with <code>:SetPrimaryPartCFrame</code>...
0
How do I freeze a player during an animation?
110648782
wiji_RBX
5
2018-08-04 00:36:29
<p>So, In my game I have a coffee machine, and when the player puts the mug in it, it fills it up with coffee. I need a way to freeze the player while the fill-up animation is playing. I've tried anchoring the gear but that didn't work. I need a script that will take the player inserting the mug and freeze during the a...
64579
1
How do I make it where when you die the server your in restarts?
159636940
RareBIue
128
2020-06-05 15:29:19
<p>How do I make it where when I die the server I’m in restarts and everything in that server just restarts?</p>
105438
0
How Can I Turn A Model From Bright Bluish Green To Bright Orange And Back With One Button?
5360723
jacobwow
140
2014-05-09 12:30:38
<p>To turn my Base1 item all into the same color i use this script in a button:</p> <pre class="brush: lua">function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then for i,v in pairs(game.Workspace.Base1:GetChildren()) do v.BrickColor = BrickColor.n...
4575
1
6184
0
24031098
ImmenseKassing
120
2014-05-09 12:57:16
<pre class="brush: lua">var1 = true function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if humanoid ~= nil then if var1 == true then wait(.5) for i, v in pairs(game.Workspace.Base1:GetChildren()) do v.BrickColor = BrickColor.new("Bright ...
0
Why Won't the Animation Play Smoothly?
1061148582
YoMrPanda
4
2023-01-20 17:17:10
<p>Hello, So basically I made an animation for a bus model and I made this local script that makes the bus animation play for you when you enter a game:</p> <pre class='brush: lua'> local bus = game.Workspace:WaitForChild("SchoolBusAnim") local animationController = bus:FindFirstChild("AnimationController") ...
132900
0
How do you index the last element in a list??
423192400
GoodCallMrOlsen
70
2019-01-30 19:35:30
<p>Here's my attempt based on how its done in Python or Ruby</p>
75451
1
70939
0
61716444
theking48989987
2147
2019-01-30 19:45:05
<p>Well in lua, to get the last member of a table/ last element in a list, you would use the length operator, or <code>#</code>, which is the easiest way of achieving this. This is the case as arrays in lua start at 1 instead of 0, unlike most other languages.</p> <p>Also note that the getn function was deprecated in 5...
0
Animation Won't Play When The Mouse Clicks?
1024248310
MarcTheRubixQb
129
2021-04-11 18:55:41
<p>So I am creating a simulator and most people know that when you are holding the tool or weapon and you click it plays and animation and gives strength. I am not focusing on the strength yet but I just need help on the animation. So the tool I am using is a wand and when you are holding it and you click, the animatio...
122275
2
111398
1
291424954
NGC4637
411
2021-04-12 13:12:35
<p>It will only play the animation when you equip and click at the same frame since it only fires the mouse click function when Tool equipped event is fired. So do this instead:</p> <pre class='brush: lua'>debounce = false local Character = game.Players.LocalPlayer.Character if not Character or not Character.Parent the...
0
what does the hit mean in the parentheses of that function?-&gt;function onTouched(hit)
416059776
lytew
99
2020-01-25 19:17:41
<p>wanted to understand the use of it to try to find out which player did the event so that I can create a text that appears on the correct screen) in short, I want to understand the use of 'hit' script:</p> <pre class='brush: lua'>function onTouched(hit) if hit.Parent:findFirstChild("Humanoid") then hit.Pa...
93577
1
How would I make an automatic weapon?
386632990
gmatchOnRoblox
98
2017-09-10 23:55:02
<p>I have a simple laser-pistol creating by ROBLOX (the one from the wiki) and I was wondering on how I would go about making it automatic without having to fire the RemoteEvent multiple time as that causes lag. I forgot to mention that I've already converted it to function with FE.</p> <p>I've tried while loops and re...
47807
0
ServerScriptService.MainServer:2: attempt to index nil with 'PlayerGui'?
1554573538
kidsteve923
140
2021-07-21 07:50:10
<p>Excuse Me What The Hell Is This Error Even Suppose To Mean Like How Is It Possible</p> <pre class='brush: lua'>ServerScriptService.MainServer:2: attempt to index nil with 'PlayerGui' </pre>
125563
1
How do you increase the size of a player?
15979245
Tweakified
117
2019-06-14 09:54:13
<p>Hello,</p> <p>I have asked this question before. However, I removed it due to not getting an answer.</p> <p><strong>Context:</strong> - I am trying to make a <em>!size character amount</em> command for a roblox game of mine.</p> <p><strong>Problem:</strong> - I cannot make the character increase in size for R6 chara...
81712
1
How to get ONE rotation value from a CFrame?
49773669
cowsoncows
926
2018-01-24 00:27:35
<p>After having learned how to put one position with another rotation, I now need to figure out how to get one rotation value (rY). I'm trying to rotate my character depending on the direction of the camera, except I only want the character to be able to spin along the y axis, not the x or z, or else he won't be standi...
52579
1
51993
1
149258954
RayCurse
1513
2018-01-24 01:07:25
<p>The rotational part of <code>CFrames</code> can be converted to <em><a target="_blank" href="http://wiki.roblox.com/index.php?title=Euler_angles">Euler angles</a></em>. This is basically three numbers representing the rotation of each of the three axes. We can get the Euler angles of a <code>CFrame</code> called <co...
0
too many elseifs for math.random?
46681528
Bloxulen
87
2020-06-04 04:32:34
<pre class='brush: lua'>while wait(5) do local r = math.random(1,10) if r == 1 then randomstuff() elseif r == 2 then otherrandomstuff() end end </pre> <p>doing this much elseifs makes the code look bigger than it needs to be</p> <p>how would i make this smaller?</p>
105286
0
Table String To Variable?
151702995
RealTinCan
217
2018-12-19 00:59:42
<p>3rd time editing this since it's not 'clear enough'... HOW... DO... YOU... CONVERT... A... STRING... TO... A... FORM... THAT... IT... CAN... BE... USED... AS... A... VARIABLE...</p> <pre class='brush: lua'>local table = { one = "wasupe" } table[one] = 100 </pre>
72539
0
How to Make a vehicle part crash system?
1578874386
Guest_player1689
2
2021-09-19 18:28:04
<p>i want the part to brake or fall apart when crashed into with a car</p>
127557
1
115716
0
2102786
jundell
106
2021-09-20 16:57:09
<p>Connect the BasePart.Touched event to BasePart:BreakJoints(), and make sure the part that touches the car is not part of the car.</p> <p>This script should be put in your car. Any part named Wheel will not fall off.</p> <pre class='brush: lua'>local car = script.Parent for _ , part in pairs(car:GetDescendants()) do ...
1
How to make GUI visible to certain players?
1491123686
TheEggsquidzidBoi
38
2020-07-22 11:29:27
<p>Yes, I know its on the Roblox Dev Forum, but I couldn't seem to understand it.</p> <p>If anyone could explain a bit easier, it would surely help!</p>
109684
3
100818
1
566296650
raid6n
2119
2020-07-22 14:29:56
<p>Here's a script and explanation that minifies @GR1PP3RTV</p> <p>First, let's make a table holding all the players that will see the GUI.</p> <pre class='brush: lua'>local whilelistedplayers = {"Player1", "Player2"} </pre> <p>Once you do that, we'll have to make a PlayerAdded Event</p> <pre class='brush: lua'>local P...
0
Unable to get NPC to move to player?
133831987
Snow_Dude
45
2020-05-28 02:02:24
<p>I have a script inside an NPC's HumanoidRootPart which is supposed to check if a player hit the NPC and that makes the NPC follow him. Here it is:</p> <pre class='brush: lua'>function onTouched(hit) if script.Parent.Parent.Humanoid.Health &lt; 100 and hit.Parent.ClassName == 'Tool' then -- checks if it's a tool and ...
104583
1
96522
1
167154017
yumaking
63
2020-05-28 04:17:00
<p>Ok so this is how I would do it if I had to :</p> <pre class='brush: lua'>script.Parent.Touched:Connect(function(hit) while wait() do --while loop to keep moving to player even if their position changes if hit.Parent:IsA("Tool") and script.Parent.Parent.Humanoid.Health&lt;100 then --checks if npc was hit by a tool l...
1
How do I make all Players a Model?
15297810
xXScorpianKillerXx
25
2014-03-02 04:13:29
<p>I want to know how you can make a Player a Model, basically how it is in "The Stalker".</p>
428
0
&quot;Players.squidiskool.Backpack.RCRemote.Receiver:20: attempt to index nil with 'Name' &quot;?
102254161
squidiskool
200
2021-02-22 16:31:19
<p>I have a tool that is supposed to connect to an rc car, and lets you drive it. It connects, but it doesn't drive. I made it print when it fires, it fires, and I made it print when it receives the RemoteEvents. They both print. Why isn't the car driving? It's not the car itself, as it controls with a previous control...
120518
0
How to fix 'Cannot load the AnimationClipProvider Service.'?
1453037930
hex2decimal
2
2023-01-22 18:43:20
<p>I was working on a viewport GUI and then walked across this annoying error</p>
132911
0
How to bind the space bar to an animation?
1357339884
SilverishReign
55
2021-04-05 16:48:44
<p>I'm trying to make a jumping animation/sprite, I wanted to make it so whenever the player taps the spacebar the sprite plays.</p> <p>How the script is supposed to work: When the spacebar is pressed the id's are supposed to cycle though while the player is jumping, making the sprite. Here is my failed attempt.</p> <p...
122040
0
Render distance script breaks when player dies?
388243015
hasanchik
33
2020-08-01 13:40:29
<p>Hello.</p> <p>So i had to make a <em>Custom</em> render distance script for my very lagy game.</p> <p>NO, There no viruses in it. It is just that the game is very recourse intensive.</p> <p>So my problem is: The script breaks when the player dies. I have made two different versions with the same issue, But they have...
110467
0
ignore this question?
2053917
iaz3
190
2016-02-06 15:34:14
<pre class="brush: lua"> local s = pipp.Character.Humanoid:LoadAnimation(script.Parent:findFirstChild("GrabAnim")) s:Play() local s = pipp.Character.Humanoid:LoadAnimation(script.Parent:findFirstChild("GrabAnim")) s:Play() local s = pipp.Character.Humanoid:LoadAnimation(script.Parent:findFirstC...
27099
1
How to randomize what a button does and also add a wait?
328413134
LiLFriks
39
2020-07-20 20:18:22
<p>Hello! I'm just learning how to script. Someone helped me while I was making a script for a button that would change the song playing every time it was pressed, and I learned quite a lot from that!! I'm now trying to modify the script so that it randomizes what song plays when the button is pressed, and also make it...
109558
1
100670
1
1792206
nicemike40
481
2020-07-20 20:41:26
<p>If you look at the <a target="_blank" href="https://developer.roblox.com/en-us/api-reference/datatype/Random">documentation for Random</a>, you'll see that it's used a little differently than the way you've used it.</p> <p>Instead, at the top of your script, you need to create a random number generator:</p> <p><code...
0
Script assumes yes/no button is clicked?
161757041
krowten024nabrU
291
2020-09-07 07:47:04
<p>My script (maybe) assumes that the yes/no button in a Gui in PlayerGui was clicked even before the gui appears. Script:</p> <pre class='brush: lua'>for i = 1e+18, 1, -1 do wait(.5) print(i .. " Showing debts..") if taxYes.MouseButton1Down or taxNo.MouseButt...
112826
0
How to make a text button take away currency after being clicked?
1696235625
Cubispaghettis
1
2023-01-17 01:09:34
<p>Hello, so basically I made a text button, and I want that text button to take away 500 Points of your leaderstats currency when clicked. Anyone know how?</p>
132871
0
[SOLVED BY ME] attempt to concatenate string with nil (at line 9)?
206143181
Philipceo90
13
2020-08-08 20:37:27
<pre class='brush: lua'>local Events = game.ReplicatedStorage.AdminPanelEvents Events.RankEvents.RankChange.OnServerEvent:Connect(function(player, PlayerToGiveRankTo, RankName) print(PlayerToGiveRankTo.."'s rank has been changed to "..RankName.."!") game.Players:FindFirstChild(PlayerToGiveRankTo).leaderstats.Ra...
111003
2
Local Lighting
60557514
Axstin
55
2014-02-26 16:21:11
<p>I've heard about Local Lighting, never got around to messing with it. How does it work?</p>
312
0
My textures are not showing up?
17543550
ThatTheatrePerson
10
2014-04-20 13:58:07
<p>I am trying to build, in build mode, and the textures are not showing up for any brick. It just looks like a smooth brick. Please help and be specific. Please.</p>
2990
3
4171
0
7948755
Kozero
120
2014-04-20 14:11:30
<p>You need to wait for Roblox moderators approval to see if the decal is appropriate for roblox or do you mean the Materials like Marble, Sand, Slate etc? If not that might mean your Graphics is set to 1.</p>
0
Another error found in my scripts?
69677227
Bloxxbusta
10
2015-05-09 04:16:40
<p>Well I keep seeming to find errors in this script of mine, I will ask one by one. Thank you scripting helpers for this site. Anyways, I was using a table for example:</p> <pre class="brush: lua">local pies = {a,b,c,d,e,f,g} local noobs = math.random(1, #pies) print(noobs[pies]) </pre> <p>What seems to be wrong?</p>
17388
1
20780
2
23458734
Hybric
271
2015-05-09 04:19:19
<p>You switched pies and noobs, should be pies[noobs]</p>
4
BrickColor.new() to BrickColor3.new() ?
20901244
Aethex
256
2014-03-07 16:02:08
<p>I am trying to make a chat and have the player's team color as their chat color. I am trying to figure out how to get the BrickColor3 value of the text BrickColor value. i.e. BrickColor.new("Really black") is the same as BrickColor3(0, 0, 0).</p>
547
2
881
10
35339312
ImageLabel
1541
2014-03-07 16:20:34
<p>You mean Color3.new?</p> <pre class='brush: lua'>local brickcolor = BrickColor.new("Really red") --Create our new BrickColor ---------------------------- local color = brickcolor.Color </pre> <p><a href="http://wiki.roblox.com/index.php/Color3">http://wiki.roblox.com/index.php/Color3</a></p>
2
Raycasting
29806839
ConnorVIII
448
2014-03-23 18:00:12
<p>Can anyone tell me what raycasting is and what it is used for</p> <p>How can you implement it ingame?</p> <p>I have read up on the wiki and found nothing that explains it.</p>
872
1
1350
0
11141840
trogyssy
221
2014-03-24 15:22:04
<p>Raycasting is used mainly for guns and other weapons. It draws a ray starting at point A and going in the direction of point B until it hits something, or forever. Here's an example of Raycasting in use:</p> <p>http://wiki.roblox.com/index.php?title=How_to_Make_a_Raycasting_Lasergun</p>
1
How can I turn a number into words?
1850266
Bubby4j
231
2014-03-03 22:28:22
<p>Say you have a number, make it 192,540,520</p> <p>How can you turn this number into this string: one hundred ninety two million five hundred fourty thousand five hundred twenty</p>
467
1
1172
1
22319584
AxeOfMen
434
2014-03-17 04:17:44
<p>This is a really fun exercise that involves <a target="_blank" href="https://en.wikipedia.org/wiki/Recursion_%28computer_science%29#Recursive_functions_and_algorithms">recursion</a>. I highly recommend attempting to work through this problem on your own before simply using the solution I present below. Take your tim...
1
How does one limit the camera from zooming out too far?
54046671
Monsieur_Robert
338
2015-02-22 23:55:13
<p>On first glance, you would think that using the FieldOfView property would do this. I still want to be able to use the classic camera, just not allow it to zoom out super far. Also, I believe that The Mad Murderer does this, however I haven't played TMM in a while.</p>
15228
1
Why is my keybind magic fling script not working on other models?
364796628
Funnyskyswagway3
30
2021-04-03 05:36:27
<p>I have this script here when you 'press e' it's supposed to fling the other person but all it does is fling me. Any help with changing it so it flings the other models instead of flinging me</p> <pre class='brush: lua'>game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key) if key == "e" then l...
121954
1
111079
0
1792778813
Xapelize
2586
2021-04-03 07:01:34
<p>You located yourself as the flinger. Consider changing line 3: <code>local char = game.Workspace:WaitForChild("PlayerName")</code></p>
0
How do I get a model's position?
4330521
whyOmustOitObeOme
7
2015-02-10 20:13:33
<p>I need to clone a model and move it to another part of a place, and after a given amount of time, move the model back to its original position. Unfortunately, I don't know the coordinates of the models starting position, so I can't move it back there. Doing something like this:</p> <pre class="brush: lua">print(game...
14884
2
17961
2
55088775
NotsoPenguin
705
2015-02-10 23:18:23
<p>One way to do this would be to set a <code>PrimaryPart</code> of the <code>model</code>.</p> <pre class="brush: lua">local Model = Game.ServerStorage.Thing Model.PrimaryPart = Model.PrimaryPartThing local NewPosition = CFrame.new(12312,31231231,3123112) local OldPosition = Model:GetPrimaryPartCFrame() Model:SetPrima...
1
Why Isn't the button not responding even If you press It?
1961959172
imnotaguest1121
311
2022-11-23 02:03:41
<p>Ello Developers!</p> <p>As the title says, for some reason, my button doesn't do anything, even if you press It, basically, If you equip the Item, It will show the GUI buttons, I want my game to be mobile friendly, so that way mobile players can access special abilities which otherwise can only be accessed by PC use...
132349
0
Why won't the code in my remote event run?
1274540012
BoiBoi24T
28
2022-10-05 21:35:29
<p>(I made a custom leaderboard)</p> <p>I have created a remote event that runs everytime a player leaves or joins the game. I added a script which adds the player to the leaderboard, but the code won't run. No errors come into the console either.</p> <p>Local Script</p> <pre class='brush: lua'>local ReplicatedStorage ...
131812
1
119053
1
110029109
loowa_yawn
316
2022-10-05 22:15:06
<p>Instead of running the <code>PlayerAdded</code> code on your client (which would call the server <em>several</em> times if you have more than one player), why not do it in the server?</p> <pre class='brush: lua'>local ServerStorage = game:GetService("ServerStorage") local Players = game:GetService("Players") local T...
0
How to detect if player is holding down proximity prompt?
381024148
mishokirva
22
2021-07-24 15:10:43
<p>I've tried to use promptbuttonholdbegan but it didnt work can someone help</p>
125672
2
114344
1
443643048
Soban06
390
2021-07-24 15:42:29
<p>Alright this is quite simple. You will need 2 Events for Proximity Prompts (Triggered and PromptButtonHoldEnded).</p> <p>Here is how you will implement it within your script (script inside the proximity prompt):</p> <pre class='brush: lua'>local IsHoldingDownPrompt = false script.Parent.Triggered:Connect(function() ...
0
How to make TakeDamage() register only once?
526210522
Dehydrocapsaicin
20
2021-01-13 12:06:13
<p>I'm trying to make a punch system that does 5 damage per hit. But for some reason it does way more than 5 damage. I know it has something to do with debounces but I already did add a debounce. I know I'm not very good with scripting. Please help, thanks much.</p> <pre class='brush: lua'>local UIS = game:GetService("...
118639
1
108514
0
32873227
shadowstorm440
35
2021-01-13 12:21:40
<p>You need to make sure you define that attacking is false <strong>before</strong> the damage</p> <p>like this:</p> <pre class='brush: lua'> leftFist.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid") if humanoid and attacking then attacking = fa...
0
How do you tween a Text button in a frame?
429720902
EmeraldRailYT
8
2019-12-17 02:10:22
<p>Im very new to lua code so this is probably simple this is the code I have:</p> <pre class='brush: lua'>local button = game.StarterGui.PlayScrene.Screne.Play local PlayButton = game.StarterGui.PlayScrene.Screne.Play player = game.Players.LocalPlayer local object = game.StarterGui.PlayScrene.Screne local click = game...
91504
1
84712
1
156586483
Leamir
2978
2019-12-17 02:57:39
<p>Hello, EmeraldRailYT!</p> <p>Your script was correctly moving the gui, but you was moving the gui inside <code>game.StarterGui</code>, that is just the gui that is clonned inside the player when they join.</p> <p>I just needed to change the gui from <code>game.StarterGui</code> to <code>game.Players.LocalPlayer.Play...
1
Show Gui When player dies ? (UNANSWERED)
17820096
jblade73
3
2014-05-11 16:29:56
<p>I have Made A Gui. I need it to show when the player dies.</p> <p>So like...</p> <p>Local player = NEED HELP</p> <p>if player.Humanoid.Health == 0 then Guisname.Show()</p>
4715
3
6342
0
6438406
jbjgang2
37
2014-05-11 16:45:21
<pre class='brush: lua'>function Died() plGui = game.Players.LocalPlayer.PlayerGui scrnGui = Instance.new("ScreenGui",plGui) fr = Instance.new("Frame",scrnGui) txt = Instance.new("TextLabel",scrnGui) fr.Size = UDim2.new(0,2000,0,2000) fr.BackgroundColor3 = BrickColor.new("Really red").Color txt.Position = UDim2.new(--[...
0
HELP?:ServerScriptService.walksLeaderboard:76: Expected ')' (to close '(' at line 48), got 'end'
1605865278
bearbon3z
2
2022-09-04 17:08:45
<p>ERROR IS IN TITLE</p> <pre class='brush: lua'><br />local function equipPet(player,pet) local character = player.Character if pet ~= nil and character ~= nil then if character:FindFirstChild(player.Name.."'s pet") then character [player.Name.."'s pet"]:Destroy() end if character.HumanoidRootPart:...
131506
0
Force Field won't go away to fight?
1527823663
kickoff127
10
2021-02-22 23:31:48
<p>I want to make a game where you spawn in with a shield (So you don't get spawn killed), but when the timer gets down and you get tp'd into the game(A part, which you cannot see/touch, but it is really on a GrassPlate).</p> <p>Script that puts you in the game:</p> <pre class='brush: lua'>local seconds = game.Workspac...
120542
1
109909
0
590773745
aurich98
86
2021-02-22 23:36:51
<p>Disabling the script won't make the force field go away. You need to delete it;</p> <p>It does not work when you die because the script is disabled.</p>
0
How do I give the player their gear right after they buy it instead of having to rejoin?
37745860
BunjiBloxxer
51
2022-06-26 15:12:56
<p>I have a gamepass that gives the player a gravity coil when they buy it, but they have to rejoin to get it. How do I make it so that they get it right after they purchase it? Here is the script in Workspace that gives them the gear upon joining:</p> <pre class='brush: lua'>local MarketPlaceService = game:GetService(...
130518
2
117859
0
57053468
aviel101
165
2022-06-26 19:34:07
<p>there's something called <code>PromptGamePassPurchaseFinished</code>, which is an event that fires when a gamepass purchase prompt closes. the <code>success</code> tells you if the player bought the gamepass successfully, and the <code>id</code> tells you the gamepass they purchased</p> <p>just add it to one of your...
0
How do I remove a t-shirt from a character?
22419365
Rodmane234
85
2017-03-13 23:46:27
<p>I want to change the ShirtGraphic from a character, but it seems like disabling RobloxLocked is impossible without using the console, so I'm thinking of destroying a t-shirt from a player completely, deleting the ShirtGraphic and the roblox decal, and making my own t-shirt via script. However, this seems to be impos...
40976
0
How do you make a text button open another one when clicked?
1696235625
Cubispaghettis
2
2023-01-18 02:03:35
<p>So I tried setting a text button and another as its child and put .Child in the script to say where it is and its not opening the text button. Anyone know how to make that happen?</p>
132881
0
Why pathfinding doesnt work when script started from another script?
678236553
RazuiYT
0
2022-05-19 16:59:14
<p>Hi, im pretty new to scripting and i ran into this problem. So when I have disabled script and enable it in proporties the pathfinding works and npc is avoiding obstacles, but when i enable same script from another script by using script.Disabled it is going straight to destonation. I aslo tried doing something with...
130045
0
Why the heck isn't network ownership being set?
1007890826
nc2r
117
2020-05-31 21:51:08
<p>Item is a tool. I am trying to make a tool that is throwable. Server Code:</p> <pre class="brush: lua">local Model = Item:FindFirstChildWhichIsA("Model") for _, v in pairs(Item:GetDescendants()) do if v:IsA("BasePart") then v:SetNetworkOwner(Player) v.CanCollide = false end end Humanoid:LoadA...
104967
1
Unable to cast Vector3 to CoordinateFrame?
65127744
thebootsie123
160
2017-08-08 14:42:07
<p>Hi! I'm currently doing something with the Roblox PathFindingService. I'm trying to CFrame a model so that it points to the point and then moves the model to that point. However, I'm running into an issue. When I try to set the CFrame of the primary part of the model I want to move I get an error.</p> <blockquote> <...
46428
0
How do I change Leaderboard values to gui for mobile users?
1250591849
Roblox28721
5
2021-06-11 00:19:08
<p>For example somebody on the Leaderboard has 43 kills but they can't see it because they are mobile. So I want to know how to make a gui that shows their kills that gets information from the Leaderboard values. Please explain where to put things as I'm a little new to scripting like this.</p> <p>This is the Leadersta...
124260
0
how to make a humanoid animate on touch?
14385694
antazma
8
2020-09-14 01:16:56
<p>Ive got it to work when being touched, but it only works once, any suggestions?</p> <pre class='brush: lua'>local db = true local animation = script:WaitForChild('Animation') local humanoid = script.Parent:WaitForChild('Humanoid') local anim = humanoid:LoadAnimation(animation) script.Parent.Crate.Touched:connect(fun...
113142
1
103866
0
79300081
CaioAlpaca
342
2020-09-14 01:27:25
<p>Your settings db to false and never setting it to true again thats the reason.</p> <p>Also, instead of doing this</p> <pre class='brush: lua'>if db == true then --do something end </pre> <p>Do this</p> <pre class='brush: lua'>if db then --do something end </pre>
0
Certain part of my script won't run and I don't know why?
342893559
SilentKiller5557
6
2022-05-04 18:52:58
<p>The part that says "if mageTween == true" wont run or something. I don't get "mage tween worked" in the output.</p> <pre class='brush: lua'>--true/false local mageTween = false --labels/buttons local Text = script.Parent local Logo = script.Parent.Parent.logo local BG = script.Parent.Parent.mobileSupport local BD = ...
129909
1
How can I save weapon unlocks on my game?
1632272044
SIayec
7
2020-08-01 18:50:31
<p>I have Buttons that give you weapons. The Buttons cost money to unlock. How can I make it so that when you unlock the weapons they save and stay unlocked if you leave and rejoin?</p> <p>thank you!</p>
110488
1
101488
0
1522202318
NathanBlox_Studios
212
2020-08-01 20:40:02
<p>You can use a datastore in a way that has a weapon unlocked value, either 1 or 0</p> <p>Once the player joins, if the data store value is 1, they own the item. If not the value is 0 the player does not have it.</p>
2
Why is my Gui's Size Changing From What I Wrote?
162856985
Sulu710
136
2019-08-07 20:42:48
<p>My Image Gui's size is x-scale 0.06 and y-scale 0.062, with no offset values (or in UDim <code>{0.06, 0}, {0.062, 0}</code>). The problem is, when I try to get the size in a script, the size is not that. Even when I run a function in the command bar to print the Gui's size, it comes out as <code>{0.0599999987, 0}, {...
85305
2
79194
6
124281858
DeceptiveCaster
3043
2019-08-07 23:30:34
<p>In almost all programming languages (if not most, then every language) there is a type of runtime "error" that can occur called <em>roundoff.</em> A roundoff error is when the compiler gives you the number it stored in binary instead of the actual number you gave it. (More specifically, a roundoff error is the diffe...