![]() ![]() Local result = Workspace:Raycast(origin, direction) Local direction = (position - origin).Unit*300 ![]() Remote.OnServerEvent:Connect(function(player, position) Local ServerStorage = game:GetService("ServerStorage") Local Workspace = game:GetService("Workspace") Local remote = tool:WaitForChild("OnShoot") Local shoot_part = tool:WaitForChild("Handle") Server Script: local tool = script.Parent My gun will not make a bullet to where the mouse if pointing (sometimes), but let me know what you guys think. developers, I made a custom gun script, and I want to check what you guys think. S.Source = [[ function onTouched(hit) if hit.Parent = nil then return end local h = hit.Parent:findFirstChild("Humanoid") if h = nil then return end h:TakeDamage(0) end :connect(onTouched) No, put the script I gave you inside of the brackets in your script. Hit.Parent:findFirstChild("Torso").Anchored = false Hit.Parent:findFirstChild("Torso").Anchored =false Hit.Parent:findFirstChild("Torso").Anchored = true Local p = game.Players:playerFromCharacter(hit.Parent) Local h = hit.Parent:findFirstChild("Humanoid") K ty music man, oh by the way where do I add the script: It fades when its been fired which I like, but I don't want it to kill people :) ( I need help on my leaderboard to make it work lol, many help appreciated ) Right, i've got a Laser Gun what I got off Free Models (credit to the creator)Īnd I want it to change so it DOESN'T KILL the person whos been hit, I want it to say BUZZ! on there screen and then freeze there character for 2.5secondsĪnd to make it complicated'er I need it to the leaderboard and count up how many times the player has been buzzed. Off-Topic: Me again LOL, my games nearly finished!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |